<%@ page pageEncoding='UTF-8'%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<s:set var="contextPath" value="#request.get('javax.servlet.forward.context_path')" scope="request" />
<!DOCTYPE html>
<head>
    <title>Drug Brand Registration</title>
    <%-- header --%>
    <jsp:include page="/WEB-INF/content/common/Header.jsp" flush="true"/>
    <script src="${contextPath}/js/jquery/jquery.validate.js"></script>
    
    <script>
		$( document ).ready(function() {
			 // Handler for .ready() called.
			$("#drug-brand-registration-form").validate({
				messages: {
    			"guiDrugBrand.name": "Please specify the drug brand name"
  				}
			});
		});
	</script>
</head>
<body class="metro">
	<%-- tob-bar --%>
    <jsp:include page="/WEB-INF/content/common/TopBar.jsp" flush="true"/>
       	
	<div id="main-container" class="body-wrapper">
        <%-- tob-container --%>
    	<jsp:include page="/WEB-INF/content/common/TopContainer.jsp" flush="true"/>
        
    	<div id="body-container">
        	<div id="drug-brand-registration-form-container" class="form-container">
        		<form id="drug-brand-registration-form" class="registration-form" action="${contextPath}/drugbrand/update" method="post">
                	<input type="hidden" name="guiDrugBrand.brandId" value="${guiDrugBrand.brandId}" />
                	<fieldset>
                    	<legend>Drug Brand Registration</legend>
                        <label>Brand Name<em class="text-alert">*</em></label>
                        <div class="input-control text">
                        	<input type="text" name="guiDrugBrand.name" value="${guiDrugBrand.name}" placeholder="input text" required/>
                            <button class="btn-clear"></button>
						</div>
                        <div>
                        	<input type="submit" value="Submit" class="primary" />
                            <a href="${contextPath}" class="button info">Cancel</a>
                        </div>
        			</fieldset>
        		</form>
    		</div>    
    	</div>
        
        <%-- bottom-container --%>
    	<jsp:include page="/WEB-INF/content/common/BottomContainer.jsp" flush="true"/>
        
	</div>
    
    <%-- footer-container --%>
    <jsp:include page="/WEB-INF/content/common/FooterContainer.jsp" flush="true"/>
    
</body>
</html>

